/**
 * Created by dell on 2018/12/11.
 */
/*
    实现图书管理后台接口
 */
const express = require('express');
const router = require('./router.js');
const app = express();
const bodyParser = require('body-parser');

//静态资源
app.use('/www',express.static('public'));
//body-parser中间件
app.use(bodyParser.urlencoded({ extended: false }));
//路由
app.use(router);

app.listen(3000,()=>{
    console.log('running.......');
});

